﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IntelligentCMS
{
    public partial class field : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
                CMSFieldConfig newConfig = (CMSFieldConfig)(LoadControl("CMSFieldConfig.ascx"));
                if (Request.QueryString["ID"] != null)
                {
                    if (Request.QueryString["ID"].Trim() != string.Empty)
                    {
                        newConfig.FieldID = long.Parse(Request.QueryString["ID"]);
                        newConfig.Execute();

                    }

                }

                thePanel.Controls.Add(newConfig);
            
            
        }

        protected void Button_Done_Click(object sender, EventArgs e)
        {
            Response.Redirect("managefields.aspx");
        }

        protected void Button_More_Click(object sender, EventArgs e)
        {

        }
    }
}
